# i = [num for num in range(10) if num % 2]

# for num in range(10):
#     if num % 2:
#         i.append(num)
# print(i)

# l1 = [11, 22, 33, 44, 55]，请把索引为奇数对应的元素删除，不能一个一个删除

l1 = [11, 22, 33, 44, 55]
l1 = [l1[idx] for idx in range(len(l1)) if not idx % 2]
print(l1)